package com.jeeplus.test.jlnu.student.service.impl;

import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeeplus.sys.domain.User;
import com.jeeplus.sys.service.RoleService;
import com.jeeplus.sys.utils.UserUtils;
import com.jeeplus.test.jlnu.admissionInfo.mapper.AdmissionInfoMapper;
import com.jeeplus.test.jlnu.student.domain.entity.StudentApply;
import com.jeeplus.test.jlnu.student.domain.entity.StudentStatus;
import com.jeeplus.test.jlnu.student.mapper.StudentApplyMapper;
import com.jeeplus.test.jlnu.student.mapper.StudentStatusMapper;
import com.jeeplus.test.jlnu.student.service.StudentApplyService;
import com.jeeplus.test.jlnu.student.service.StudentStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyMapper, StudentApply> implements StudentApplyService {
    @Autowired
    private StudentApplyMapper studentApplyMapper;

    @Autowired
    private RoleService roleService;

    @Override
    public List<StudentApply> examinePage1(StudentApply studentApply, int current, int size) {
        List<StudentApply>  studentApplies = studentApplyMapper.examinePage1(studentApply, current, size);
        return studentApplies;
    }

    @Override
    public List<StudentApply> examinePageResult(StudentApply studentApply, int current, int size) {
        List<StudentApply> studentApplies = studentApplyMapper.examinePageResult(studentApply, current, size);
        return studentApplies;
    }

    @Override
    public List<StudentApply> examinePage2(StudentApply studentApply, int current, int size) {
        List<StudentApply>  studentApplies = studentApplyMapper.examinePage2(studentApply, current, size);
        return studentApplies;
    }
}
